//
//  STConstant.h
//  STBest
//
//  Created by apple on 2017/8/29.
//  Copyright © 2017年 apple. All rights reserved.
//

#ifndef STConstant_h
#define STConstant_h

// 状态条的高度
#define _StatusBarHeight     ([UIApplication sharedApplication].statusBarHidden ? 0 : [UIApplication sharedApplication].statusBarFrame.size.height)

// 屏幕宽度
#define _ScreenWidth         ([UIScreen mainScreen].bounds.size.width)

// 屏幕高度
#define _ScreenHeight        ([UIScreen mainScreen].bounds.size.height)

// 导航条高度
#define _NaviHeight          (self.navigationController == nil ? 0 : (self.navigationController.navigationBarHidden == YES ? 0 : self.navigationController.navigationBar.frame.size.height))

// tabBar高度
#define _TabBarHeight        (self.tabBarController == nil ? 0 :(self.tabBarController.tabBar.hidden == YES ? 0 : self.tabBarController.tabBar.frame.size.height))

// 内容高度
#define _ContentHeight      (_ScreenHeight - _TabBarHeight - _NaviHeight)

#endif /* STConstant_h */
